package com.movie.ticket.sale.movieinterface.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ticket
 * @since 2020-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order_movie")
public class TOrderMovie implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户购票订单
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String tradeNuo;

    private Integer userId;

    /**
     * 核对码
     */
    private String checkCode;

    private Integer cinemaId;

    private Integer movieId;

    /**
     * 影厅id
     */
    private Integer auditoriumId;

    /**
     * 场次id
     */
    private Integer peridId;

    /**
     * 实付价格
     */
    private Double realPrice;

    /**
     * 票价
     */
    private Double ticketPrice;

    /**
     * 手续费
     */
    private Double tip;

    /**
     * 票数
     */
    private Integer number;

    /**
     * 退票票数
     */
    private Integer refund;

    /**
     * 改签的票数
     */
    private Integer change;

    /**
     * 优惠券
     */
    private Integer discountId;

    /**
     * 顶单时间
     */
    private LocalDateTime data;

    /**
     * 1:待进行2:部分退票3:全部退票4:部分改签5:全部改签6:已取票7:已完成
     */
    private Integer state;


}
